//window.onload=function(){
	var resizeEnt="orientationchange"in window?"orientationchange":"resize";
function calcrem(){
	var clientWidh=document.documentElement.clientWidth;
	document.documentElement.style.fontSize=(clientWidh/320)*100+"px";
	
}

window.addEventListener(resizeEnt,calcrem);
document.addEventListener("DOMContentLoaded",calcrem);

//}
